package com.xwh.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.xwh.core.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.Getter;
import lombok.Setter;

/**
 * @author xwh
 **/
@Entity
@Getter
@Setter
public class SysFile extends BaseEntity {

    @Id
    @TableId(type = IdType.ASSIGN_ID)
    @Column(length = 20)
    String fileId;

    @Column(length = 50)
    @Schema(name = "文件名称")
    String fileName;

    @Column(length = 50)
    @Schema(name = "文件类型")
    String fileType;

    @Column(length = 50)
    @Schema(name = "文件大小")
    String fileSize;

    @Column(length = 50)
    @Schema(name = "文件路径")
    String filePath;

    @Column(length = 50)
    @Schema(name = "文件后缀")
    String fileSuffix;

    @Column(length = 50)
    @Schema(name = "文件md5")
    String fileMd5;
}
